<template>
  <el-container class="setting-center_company-certication">
    <el-main>
      <div class="card-list">
        <el-row :gutter="40">
          <el-col :xs="18" :md="12" :lg="24" class="list-item-box">
            <div class="list-item clearfix">
              <div class="item-intro fl ">
                <div class="clearfix" style="text-align: center;">
                  <el-steps class="state" :active="active" align-center finish-status="success">
                    <el-step title="主体信息" description="主体信息" />
                    <el-step title="法人信息" description="法人信息" />
                    <el-step title="提交审核" description="提交审核" />
                  </el-steps>
                </div>
              </div>
              <div class="intro-detail fl">
                <div class="intro-title ">
                  <P><span><b>你所提交的申请将在3个工作日内完成审核，请确保你提交的材料是真实有效</b></span></P>
                </div>
                <ul>
                  <li>
                    <P><span><b>注意事项：</b></span></P>
                    <ul class="infos mb10">
                      <li>
                        <P class="a-row"><span>提交认证信息后，无法进行撤回和修改，只能等审核结束才能更改；</span></P>
                      </li>
                      <li>
                        <P class="a-row"><span>当主体信息认证不通过时，需要重新提交主体信息；</span></P>
                      </li>
                      <li>
                        <P class="a-row"><span>如需修改主体信息，所有认证信息将会失效，一定要谨慎；</span></P>
                      </li>
                      <li>
                        <P class="a-row"><span>如需修改店铺信息，只需要提交店铺认证信息即可；</span></P>
                      </li>
                      <li>
                        <P class="a-row"><span>审核结果会发送短信到联系人手机号以及店铺后台认证提交处会显示结果。</span></P>
                      </li>
                    </ul>
                  </li>
                </ul>
              </div>
            </div>
          </el-col>
          <el-col :xs="18" :md="12" :lg="24" class="list-item-box">
            <div class="image-link-button">
              <el-button class="image-link-button-button" size="mini" @click="gotoCompanyEntityCertifyStepThree('','')">上一步</el-button>
              <el-button class="image-link-button-button" size="mini" @click="sumitAudit('','')">提交审核</el-button>
            </div>
          </el-col>
        </el-row>
      </div>
    </el-main>
  </el-container>
</template>

<script>
import { authenticationModify } from '@/api/authentication'

export default {
  components: {},
  props: {},
  data() {
    return {
      active: 2,
      dataForm: {
        enterpriseAuditStatus: 0
      }
    }
  },
  computed: {},
  watch: {},
  created() {
  },
  methods: {
    sumitAudit() {
      this.dataForm.enterpriseAuditStatus = 4
      authenticationModify(this.dataForm).then(res => {
        this.active = 3
        this.$message.success('提交审核')
      })
    },
    gotoCompanyEntityCertifyStepThree(id, type) {
      this.$router.push(`/companyCertification/companyEntityCertifyStepThree?id=${id}&type=${type}`)
    }
  }
}
</script>
<style lang="scss" scoped>
.setting-center_company-certication{
  min-width: 100%;
  min-height: 100%;
  .mb16{
    margin-top: 20px;
  }
  .card-list{
    margin-top: 15px;
    padding-right: 30px;
    padding-left: 30px;
  }
}
.list-item-box {
  margin-bottom: 20px;
  padding-right: 20px;
  padding-left: 20px;

}

.list-item {
    position: relative;
    border: 2px solid #dddce2;
    border-radius: 4px;
    padding: 20px;
    display:block;
    height: auto;
    width: 100%;
    .item-intro{
      padding-left: 20px;
      letter-spacing: 0.5px;
      vertical-align: top;
      float: inherit;
      .intro-title {
        font-size: 18px;
        line-height: 24px;
        color: #595961;
        padding-left: 40px;
        margin-top: 80px;
        margin-bottom: 80px;
        font-weight: 700;
        letter-spacing: 1px;
        text-align: center;
      }
      .text-elepsis {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      .intro-detail {
        font-size: 14px;

        line-height: 20px;
        color: #3a3a3e;
        margin-top: 40px;
        margin-left: 150px;
        text-align: center;
        .infos {
          display:inline-block;
          text-align: left;
          line-height: 20px;
          margin-left: 40px;
          justify-content: space-between;
          .a-row{
            padding: 10px;
            margin-left: 10px;
          }

          li {
            width: 50%;
            text-align: left;
            font-weight: 400;
            list-style-position:outside;
            p {
              margin: 0;
              font-size: 14px;
              line-height: 20px;
              span {
                display: inline-block;
                width: 30%;
              }
            }
          }
        }
      }
    }
    .fl{
      float: center;
    }
    .text-elepsis {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      word-wrap: break-word;
    }
}
.image-link-button {
  padding: 2px 0 0;
  margin-top: 14px;
  text-align: center;
  justify-content: space-between;
  .image-link-button-button{
     background-color: #00aaff;
     z-index: 1;
     color: #FFFFFF;
     height: 36px;
     width: 150px;
     border: 1px solid #FFFFFF;
     padding: 0;
     font-size: 12px;
     align-items: center;
     border-radius: 10px;
  }
}
</style>
